package com.ktjy.web.dao;



import com.ktjy.web.entity.Role;

import java.util.List;

public interface RoleDao {
    //查询全部
    public List<Role> selRoleAll();

    //根据名称查询
    public List<Role> selRoleByNameAll(String roleName);

    //根据ID查询
    public Role selRoleById(int id);

    //查重
    public Role selRoleByName(String roleName);

    //角色新增
    public int addRole(Role role);

    //角色修改
    public int updateRole(Role role);

    //角色删除
    public int delRole(int id);
}
